package org.wz.complex.work.entity.project.code;

import jakarta.validation.constraints.NotBlank;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import org.wz.complex.work.anno.ComposeEntity;
import org.wz.complex.work.anno.Deploy;
import org.wz.complex.work.anno.RemoveCols;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.wz.complex.work.entity.project.database.DatabaseName;


@Deploy
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("project_code_vue")
public class CodeVue {

    @TableId(type = IdType.AUTO)
    private Long id;

	/**
	 * 标题
	 */
	@NotBlank(message = "标题不能为空")
	private String title;

	/**
	 * 项目名称
	 */
	@NotBlank(message = "项目名称不能为空")
	private String projectName;

	/**
	 * 项目路径
	 */
	private String projectPath;

	/**
	 * 模板路径
	 */
	private String templatePath;

	/**
	 * 数据库名称
	 */
	private Long databaseNameId;

	@ComposeEntity
	@TableField(exist = false) 
	private DatabaseName databaseName;  // entity

	/**
	 * 
	 */
	private String deploy;



    

}
